package com.example.crossborderecommerce.service.impl;

import com.example.crossborderecommerce.entity.Admin;
import com.example.crossborderecommerce.entity.ProductAttribute;
import com.example.crossborderecommerce.entity.ProductBrand;
import com.example.crossborderecommerce.mapper.ProductAttributeMapper;
import com.example.crossborderecommerce.mapper.ProductBrandMapper;
import com.example.crossborderecommerce.service.IProductBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yolanda
 * @since 2024-05-09
 */
@Service
public class ProductBrandServiceImpl extends ServiceImpl<ProductBrandMapper, ProductBrand> implements IProductBrandService {
    @Resource
    ProductBrandMapper productBrandMapper;
    @Override
    public List<Admin> findAdminsInProductBrand() {
        return productBrandMapper.findAdminsInProductBrand();
    }
    @Override
    public boolean updateBrand(ProductBrand productBrand) {
        return this.updateById(productBrand);
    }
}
